<template>
  <div>
        <p>你已经活了{{time}}天</p >
        </div>
</template>

<script>
export default {
    computed: {
        time(){
        const date1 = new Date("06/16/2021")
        const date2 = new Date()
        return Math.floor(Math.abs(date2.getTime() - date1.getTime()) / 86400000)
     }
    }
}
</script>

<style>

</style>